import fileUtil from '../src/utils/file'
import path from 'path'
import Mock from 'mockjs'

const data = fileUtil.getJson5(path.join(__dirname, 'data' + path.sep + 'dashboard.json5'))

// console.log(data)

export default [
  {
    url: '/dashboard/data',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: Mock.mock(data)
      }
    }
  }
]
